package cc.rengu.igas.smps.common.enums;

/**
 * 业务响应码枚举类
 *
 * @author 王成
 * @date 2017/6/27
 */
public enum RespCodeEnum {
    TRANS_SUCCESS("00000000", "交易成功"),
    MSG_VALID_CHECK_ERROR("ER11SM01", "报文检查失败"),
    KET_PARAM_EMPTY_OR_NULL("ER11SM02", "关键参数缺失"),
    ENCY_GET_MPOS_BRH_ERROR("ER12SM01", "加密机获取MPOS机构信息失败"),
    ENCY_STORE_CHNL_MAK_ERROR("ER12SM02", "加密机存储通道MAK失败"),
    ENCY_STORE_CHNL_PIK_ERROR("ER12SM03", "加密机存储通道PIK失败"),
    GENERATE_SIGN_BLOCK_ERROR("ER12SM04", "生成签名失败"),
    NOT_SUPPORT_TRANS_ERROR("ER12SM05", "不支持的交易行"),
    ENCY_VERIFY_PIN_ERR("ER12SM06", "验PIN失败"),
    REQ_CONSTRUCT_ERR("ER12SM07", "请求构造失败"),
    CALL_BIZ_SERVICE_ERROR("ER12SM08", "调用业务系统处理失败"),
    /* 系统公共错误 */
    TIME_OUT_ERROR("ER129998", "系统超时"),
    SYSTEM_ERROR("ER129999", "系统异常"),
    REQ_CONVERT_ERROR("ER12SM09", "请求转换异常"),
    PROXY_ADDR_NOT_FOUND("ER12SM10", "代理地址未找到或未配置");
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
